generate "friendly_id"

inject_into_file('app/models/user.rb', :after => %[class User < ActiveRecord::Base]) do
  %q{
  has_friendly_id :login, :use_slug => true
  }
end

Dir.glob("db/migrate/*_devise_create_users.rb").each do |file|
  inject_into_file(file, :after => %[      t.trackable]) do
    %q{
        # Friendly ID attribute
        t.string :cached_slug
    }
  end
end